<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" >
		<center><h:outputLabel value="Konto Verwaltung" styleClass="ueberschrift"/></center>
		<table id="kontoverwalten_table" class="standart kontoverwaltung">
			<tr>
				<td>Vorname:</td>
				<td><h:inputText readonly="true" value="#{kontoverwaltungViewBean.sessionBean.userinfo.user.vorname}" maxlength="30" id="user_vorname"/></td>
				<td>Rolle:</td>
				<td><h:outputLabel styleClass="highlightedLabel" value="#{kontoverwaltungViewBean.sessionBean.userinfo.user.benutzerrolle.bezeichnung}" /></td>
			</tr>
			<tr>
				<td>Nachname:</td>
				<td colspan="3"><h:inputText readonly="true" value="#{kontoverwaltungViewBean.sessionBean.userinfo.user.name}" maxlength="30" id="user_nachname"/></td>
			</tr>
			<tr>
				<td>Login ID:</td>
				<td colspan="3"><h:inputText readonly="true" value="#{kontoverwaltungViewBean.sessionBean.userinfo.user.id}" maxlength="30" id="user_id"/></td>
			</tr>
			<tr>
				<td>Login Passwort:</td>
				<td><h:inputSecret maxlength="30" id="user_passwort_s" value="#{kontoverwaltungViewBean.sessionBean.userinfo.user.passwort}" redisplay="true" readonly="true" rendered="#{not kontoverwaltungViewBean.showPasswort}"/>
				<h:inputText maxlength="30" id="user_passwort_ns" value="#{kontoverwaltungViewBean.sessionBean.userinfo.user.passwort}" readonly="true" rendered="#{kontoverwaltungViewBean.showPasswort}"/></td>
				<td colspan="2"><h:selectBooleanCheckbox id="passwort_show" value="#{kontoverwaltungViewBean.showPasswort}" >
					<a4j:ajax event="change" render="mainmenueform"  execute="mainmenueform"></a4j:ajax>
				</h:selectBooleanCheckbox>Passwort anzeigen</td>
			</tr>
		</table>
		<rich:collapsiblePanel styleClass="passwortCollapsibelPanel"  header="Passwort ändern" expanded="false">
		<table id="passwortAendern_table" class="standart kontoverwaltung">
			<tr>
				<td>altes Passwort:</td>
				<td><h:inputSecret value="#{kontoverwaltungViewBean.passwort}" maxlength="30" id="alt_passwort"/></td>
			</tr>
			<tr>
				<td>neues Passwort:</td>
				<td><h:inputSecret value="#{kontoverwaltungViewBean.passwort2}" maxlength="30" id="neu_passwort"/></td>
			</tr>
			<tr>
				<td>neues Passwort wiederholen:</td>
				<td><h:inputSecret value="#{kontoverwaltungViewBean.passwort2_w}" maxlength="30" id="neu_passwort_w"/></td>
			</tr>
			<tr>
				<td colspan="2"><center><a4j:commandButton value="ändern" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" render="mainmenueform Messagespopup" action="#{kontoverwaltungViewBean.changePasswort()}" execute="mainmenueform"/></center></td>
			</tr>
		</table>
		</rich:collapsiblePanel >
</ui:composition>